package com.ruoyi.web.controller.laiqianba.merchantdata;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.db.domain.MerchantTaskInfo;
import com.ruoyi.merchant.service.IMerchantTaskInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 当前商户任务
 *
 * @author ruoyi
 * @date 2023-09-02
 */
@RestController
@RequestMapping("/merchantdata/taskInfo")
public class MerchantDataTaskController extends BaseController
{

    @Autowired
    private IMerchantTaskInfoService merchantTaskInfoService;

    /**
     * 查询商户推送任务列表
     */
    @PreAuthorize("@ss.hasPermi('merchantdata:taskInfo:list')")
    @GetMapping("/list")
    public TableDataInfo list(MerchantTaskInfo merchantTaskInfo)
    {
        startPage();
        List<MerchantTaskInfo> list = merchantTaskInfoService.selectTaskInfoList(merchantTaskInfo);
        return getDataTable(list);
    }

}
